ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 7 - No. 3)

What is the purpose of the inner loop in a bubble sort algorithm?
To initialize the array.
To control the overall number of passes.
To compare adjacent items and swap them if necessary.
To display the sorted list.

คำอธิบาย

The inner loop does the actual sorting by comparing elements.

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc